@import "extension/articleEnlarge";
@import "extension/articleSidebar";
@import "extension/comment";

@media (min-width: 1199px) {
  .main-box {
    padding-left: 45px;
  }
}

@media (max-width: 768px) {
  nav.navbar.bootsnav {
    left: 0!important;
  }
  .article-h1 {
    display: none!important;
  }
}


nav.navbar.bootsnav {
  overflow: hidden;
  left: 45px;
  .nav.navbar-nav {
    max-width: 1200px;
    margin: 0 auto;
    float: none!important;
  }
}

@media (min-width: 768px) {
  .main-box ul.footer-container {
    padding-left: 25% !important;
  }
  .article-h1 {
    display: block;
  }
}

/*
@media (min-width: 992px) {
  .main-box ul.footer-container {
    padding-left: 25% !important;
  }
}
*/

.article-wrap {
  max-width: 1200px;
  margin: 0 auto;
  .article-content {
    margin-right: 380px;
    .editor {
      padding: 0 20px;
      border-radius: 4px;
    }
  }

  // 侧边栏
  .sidebar {
    position: fixed;
    width: 360px;
    margin-left: 20px;
  }
}

@media screen and (min-width: 480px) and (max-width: 1024px) {
  .article-wrap {
    .article-content {
      margin: 0 15px;
    }
    .sidebar {
      display: none;
    }
  }
}

@media (max-width: 480px) {
  .article-wrap {
    .article-content {
      margin: 0 10px;
    }
    .sidebar {
      display: none;
    }
  }
}

.day-mode {
  .article-content {
    background-color: #ffffff;
    .editor {
      border: 1px solid #eaeaea;
    }
  }

  .editormd-preview-container, .editormd-html-preview, .mytextarea {
    background-color: #ffffff;
  }
}



.night-mode {
  .article-content, .mytextarea{
    background-color: #3f3f3f;
    .editor {
      border: 1px solid #656565;
    }
  }

  .editormd-preview-container, .editormd-html-preview, .mytextarea{
    background-color: #3f3f3f;
    color: #b1b1b1;
  }
}

.article-h1 {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-200%);
  transition: transform .3s cubic-bezier(.645,.045,.355,1);
  .articleTitle {
    display: flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 auto;
    padding-left: 20px;
    max-width: 1200px;
    font-size: 24px;
    font-weight: 700;
    word-wrap: break-word;
  }
}

.artile-ul {
  transition: transform .3s cubic-bezier(.645,.045,.355,1);
}

.artile-ul.article-current {
  transform: translateY(-100%);
}

// 已废弃，现在通过js来位移nav的位置给文章title,暂定还是css改变。
.article-h1.article-current {
  transform: translateY(-100%);
}

a {
  text-decoration: none;
  &:hover {
    text-decoration: none;
  }
}

.send.btn.btn-info {
  &:focus {
    outline: none;
  }
}